package intellitrends.activities;

import intellitrends.activities.R;
import intellitrends.enums.ActivityCode;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class LoginActivity extends Activity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.login);
	    
	    this.RegisterEvents();
	    // TODO Auto-generated method stub
	}
	
	private void RegisterEvents(){
		final Button btnSignUp = (Button)findViewById(R.id.btnSignUp);
		btnSignUp.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				setResult(ActivityCode.SIGNUP.getCode(), new Intent());
				finish();
			}
		});
		
		final Button btnLogin = (Button)findViewById(R.id.btnLogin);
		btnLogin.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				setResult(ActivityCode.MEMBER_PAGE.getCode(),new Intent());
				finish();
			}
		});
	}
}
